package example2;

import java.util.List;
import java.util.Map;

/**
 * @Author:DarknessShadow
 * @description:
 * @date 2020/5/13 15:56
 */
public class Main {
    public static void main(String[] args) {
        Director director = new Director(new BuilderImplA());
        List alist = director.construct();
        Main.viewList(alist);
        director = new Director(new BuilderImplB());
        List blist = director.construct();
        Main.viewList(blist);
    }

    public static void viewList(List list) {
        for (Object object : list) {
            System.out.print(object + " ");
        }
        System.out.println();
    }
}
